#include "libtcod.hpp"

#include <vector>

#include "draw.h"
#include "level.h"
#include "hero.h"

int main(int argc, char* argv[])
{
	Theme::Theme theme = Theme::Color;

	TCODConsole::initRoot(80,50,"Khazad Dûm",false);
	rel_x = rel_y = 0;

	Hero* hero = new Hero();

	Level* level = new Level(30, 30);
	hero->level = level;

	std::vector<Person*> people;

	while(!TCODConsole::isWindowClosed())
	{
		draw(theme, level, hero, people);
		TCOD_key_t key = TCODConsole::waitForKeypress(true);
		hero->Act(key.vk);
	}

	return 0;
}
